import Vue from 'vue'
import Router from 'vue-router'
import proList from '@/components/employee/projectList.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: function (resolve){
        require(['@/components/login'],resolve)
      }
    },
    {
      path: '/projectManager',
      name: 'projectManager',
      component: function (resolve){
        require(['@/components/manager/index'],resolve)
      }
    },
    {
      path: '/addProject',
      name: 'addProject',
      component: function (resolve){
        require(['@/components/manager/addProject'],resolve)
      }
    },
    {
      path: '/addEmployee',
      name: 'addEmployee',
      component: function (resolve){
        require(['@/components/manager/addEmployee'],resolve)
      }
    },
    {
      path: '/proList',
      name: 'proList',
      component:proList
    },
    {
      path:'/index',
      name:'index',
      component:proList
    },
    {
      path: '/test',
      name: 'test',
      component: function (resolve){
        require(['@/components/manager/test'],resolve)
      }
    }
  ]
})
